package com.warom.sdg.dto;

import java.util.HashMap;
import java.util.Map;

/**
 * 报警统计数据传输对象
 */
public class AlarmStatisticsDto {
    private int totalCount;               // 报警总数
    private Map<String, Integer> levelData;    // 各级别报警数量
    private Map<String, Integer> statusData;   // 各状态报警数量
    private Map<String, Integer> paramTypeData; // 各参数类型报警数量

    // 默认构造函数
    public AlarmStatisticsDto() {
        this.levelData = new HashMap<>();
        this.statusData = new HashMap<>();
        this.paramTypeData = new HashMap<>();
    }

    // Getters and Setters
    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public Map<String, Integer> getLevelData() {
        return levelData;
    }

    public void setLevelData(Map<String, Integer> levelData) {
        this.levelData = levelData;
    }

    public Map<String, Integer> getStatusData() {
        return statusData;
    }

    public void setStatusData(Map<String, Integer> statusData) {
        this.statusData = statusData;
    }

    public Map<String, Integer> getParamTypeData() {
        return paramTypeData;
    }

    public void setParamTypeData(Map<String, Integer> paramTypeData) {
        this.paramTypeData = paramTypeData;
    }

    // 添加级别数据
    public void addLevelData(String level, int count) {
        this.levelData.put(level, count);
    }

    // 添加状态数据
    public void addStatusData(String status, int count) {
        this.statusData.put(status, count);
    }

    // 添加参数类型数据
    public void addParamTypeData(String paramType, int count) {
        this.paramTypeData.put(paramType, count);
    }
} 